package sk.robocup.dvanastyhrac.tactics;

import robocup.component.tactics.InterceptBallState;
import robocup.component.tactics.StateEvaluation;
import sk.robocup.dvanastyhrac.actionfactories.AttentionToActionFactory12;

/**
 *
 * @author me
 */
public class InterceptBallState12 extends InterceptBallState
{
    public InterceptBallState12(StateEvaluation parent) {

        super(parent);
        this.state = STATES.INTERCEPT_BALL;

    }

    @Override
    public void calculateAttentionToAction() {
        this.attentionToAction = AttentionToActionFactory12.getAttentionToAction(this);

        //if we got null, compute default
        if (this.attentionToAction == null) {
            super.calculateAttentionToAction();
        }
    }
}
